<template>
  <div class="detail">
    detail
  </div>
</template>

<script>
import { DetailModel } from "../../models/DetailModel";
const detailmodel = new DetailModel();
export default {
  name: "detail",

  data() {
    return {
      data:'',
    };
  },
  mounted() {
    window.addEventListener("scroll",this.handleScroll)
    var id = this.$route.params.id;
    detailmodel.getDetail(id).then(res => {
      console.log(res);
      let data = res.data.data;
      console.log(data);
      this.data = data;
    });
  },
};
</script>
<style lang="scss" scoped>

.detail{
  height: 2000px;    
  color: #fff;
}
</style>
